<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <!-- +运算做拼接符 -->
    <!-- 只要一边是字符串就做拼接,两边都是数值才做运算 -->
    <script>
        var a = "10";
        var b = "50";
        var c = 10;
        var d = 20;
        console.log(a+b);
        console.log(b+c);
        console.log(c+d);
    </script>
</body>
</html>